﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PortalWeb.Common.UI
{
    /// <summary>
    /// 匿名访问标记
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class AnonymousAttribute : Attribute
    {
    }

    /// <summary>
    /// 控制器默认的首页标志
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class DefaultPageAttribute : Attribute
    {

    }


    [AttributeUsage(AttributeTargets.Class)]
    public class NavbarAttribute : Attribute
    {
        public NavbarAttribute(string navbarName, string parentName = "")
        {
            this.NavbarName = navbarName;
            this.ParentName = parentName;
        }

        public string ParentName { get; set; }

        public string NavbarName { get; set; }
    }
}
